package cn.white.ymc.mvvmmaster.data.local.service

import android.arch.lifecycle.LiveData
import cn.white.ymc.mvvmmaster.data.bean.UserInfo

/**
 * service 层
 *
 * @packageName: cn.white.ymc.mvvmmaster.data.local
 * @fileName: UserServer
 * @date: 2018/11/6  11:25
 * @author: ymc
 * @QQ:745612618
 */

interface UserService{

    fun add( user: UserInfo): LiveData<Long>

    fun queryByUsername(userName : String) : LiveData<UserInfo>

}